hackerrank java if else solution

visit shbcf.ru